<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%=title%></title>
</head>
<body>
  <%- include ('header.html') %>

  <h2>ejs 循环数据</h2>
  <ul>
    <% for(var i=0;i<list.length;i++){%>
    <li><%= list[i] %></li>
    <%}%>
  </ul>

  <h2>输出html数据：<%= content%></h2>
  <h2>输出html数据：<%- content%></h2>

  <h2>条件判断：</h2>
    <% if (num > 20){%>
    num 大于 20
    <%}else{%>
    num 小于 20
    <%}%>
</body>
</html>